﻿using shenghua.Authorization.Roles;
using shenghua.Authorization.Users;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace shenghua.Users.Dto
{
    public class AdminPersonalProfileDto
    {
        public string Head { get; set; }
        public string RoleName { get; set; }
        public string UserName { get; set; }
        public string Post { get; set; }
        public string Name { get; set; }
        public string Sex { get; set; }
        public string PhoneNumber { get; set; }
        public string EmailAddress { get; set; }
        public string Remark { get; set; }

        public AdminPersonalProfileDto(User user, string roleName)
        {
            Head = user.Head;
            RoleName = roleName;
            UserName = user.UserName;
            Post = user.Post;
            Name = user.Name;
            Sex = user.Sex;
            PhoneNumber = user.PhoneNumber;
            EmailAddress = user.EmailAddress;
            Remark = user.Remark;
        }
    }
}
